/**
 * 引入fetch、baseUrl
 * @param params
 * @returns {*}
 */

import Api from 'api/api'
import { Axios } from './config'

class Http {
	login(params){
		return Axios(Api.login, params);
	}
	register(params){
		return Axios(Api.register, params);
	}
	issue(params) {
		return Axios(Api.issue, params);
	}
	upUserInfo(params){
		return Axios(Api.upUserInfo, params);
	}
	user_data(params){
		return Axios(Api.user_data, params);
	}
	up_pwd(params){
		return Axios(Api.up_pwd, params);
	}
	index(params){
		return Axios(Api.index, params);
	}
	my_mimi(params){
		return Axios(Api.my_mimi, params);
	}
	message_det(params){
		return Axios(Api.message_det, params);
	}
	dot(params){
		return Axios(Api.dot, params);
	}
	del_dot(params){
		return Axios(Api.del_dot, params);
	}
	get_comment(params){
		return Axios(Api.get_comment, params);
	}
	to_comment(params){
		return Axios(Api.to_comment, params);
	}
	del_comment(params){
		return Axios(Api.del_comment, params);
	}
	del_mimi(params){
		return Axios(Api.del_mimi, params);
	}
}

export default new Http();

// 所有接口
// export default function (api, params) {
//   return Axios(api, params)
// }
